package org.groupg.practice;

import org.jgroups.JChannel;

public class ConfigExample {
    public static void main(String[] args) throws Exception {
        JChannel channel = new JChannel("jgroups-config.xml");
        channel.connect("ConfigExampleCluster");

        System.out.println("Channel connected with configuration");

        // 保持运行一段时间
        Thread.sleep(60000);

        channel.close();
    }
}